package dancetiktokenumsmongo

const (
	// 好友关系状态
	MiniGameFriendStatusAddAsk             = 1 //添加好友申请
	MiniGameFriendStatusAddAskVerifyPass   = 2 //添加好友申请验证通过
	MiniGameFriendStatusAddAskVerifyReject = 3 //添加好友申请验证拒绝
	MiniGameFriendStatusRemove             = 4 //删除好友

	// 消息状态
	MiniGameMsgStatusValid   = 0 // 有效
	MiniGameMsgStatusInvalid = 1 // 失效
)

type MiniGameFriendLogEnums struct {
}

var MiniGameFriendLogEnumsObject MiniGameFriendLogEnums

func (e MiniGameFriendLogEnums) SourceType() []int {
	return []int{
		MiniGameFriendStatusAddAsk,
		MiniGameFriendStatusAddAskVerifyPass,
		MiniGameFriendStatusAddAskVerifyReject,
		MiniGameFriendStatusRemove,
	}
}

func (e MiniGameFriendLogEnums) SourceMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.SourceType() {
		m[s] = e.SourceString(s)
	}
	return m
}

func (e MiniGameFriendLogEnums) SourceString(tag int) string {
	switch tag {
	case MiniGameFriendStatusAddAsk:
		return "添加好友申请"
	case MiniGameFriendStatusAddAskVerifyPass:
		return "添加好友申请验证通过"
	case MiniGameFriendStatusAddAskVerifyReject:
		return "添加好友申请验证拒绝"
	case MiniGameFriendStatusRemove:
		return "删除好友"
	default:
		return "其他"
	}
}
